/**
 * 功能描述
 */

define(function (require, exports, module) {
	var ApplicateGrid = require("grid");
	
    var instance = {
        initComponent: function (params,widget) {
        	var applicategrid = new ApplicateGrid({
        		parentNode: ".J-applicategrid",
        		autoRender: false,
        		show: false,
        		model: {
        			columns: [{
        				name: "sequenceNumber",
        				label: "审批次序",
        			},{
        				name: "checkTime",
        				label: "时间",
        			},{
        				name: "checker.name",
        				label: "操作人",
        			},{
        				name: "note",
        				label: "原因/意见",
        			},{
        				name: "status.value",
        				label: "操作",
        			}]
        		}
        	});
        	$(".J-applicategrid").find(".box-content").before($("<div></div>").addClass("box-header")
        			.append($("<div></div>").addClass("title").text("审批流")));
        	widget.set("applicategrid",applicategrid)
        }
    };
    module.exports = instance;
});
